/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
    //Intergrate kcfinder
 
//    config.filebrowserBrowseUrl = '/js/kcfinder/browse.php?type=files';
//    config.filebrowserImageBrowseUrl = '/js/kcfinder/browse.php?type=images';
//    config.filebrowserFlashBrowseUrl = '/js/kcfinder/browse.php?type=flash';
//    config.filebrowserUploadUrl = '/js/kcfinder/upload.php?type=files';
//    config.filebrowserImageUploadUrl = '/js/kcfinder/upload.php?type=images';
//    config.filebrowserFlashUploadUrl = '/js/kcfinder/upload.php?type=flash';
//    
     
    config.filebrowserBrowseUrl = '/yii-news/js/backend/kcfinder/browse.php?type=files';
    config.filebrowserImageBrowseUrl = '/yii-news/js/backend/kcfinder/browse.php?type=images';
    config.filebrowserFlashBrowseUrl = '/yii-news/js/backend/kcfinder/browse.php?type=flash';
    config.filebrowserUploadUrl = '/yii-news/js/backend/kcfinder/upload.php?type=files';
    config.filebrowserImageUploadUrl = '/yii-news/js/backend/kcfinder/upload.php?type=images';
    config.filebrowserFlashUploadUrl = '/yii-news/js/backend/kcfinder/upload.php?type=flash';


	// Define changes to default configuration here. For example:
    config.skin = "kama"; //kama|office2003
    config.uiColor = "#e5f1f4";
	config.language = "vi";
    config.toolbar = "Description";
    config.height = "300";
    config.width = "700";
    
    config.enterMode = CKEDITOR.ENTER_BR;
    //config.enterMode = CKEDITOR.ENTER_DIV;
    //config.extraPlugins : "uicolor";
    
    config.toolbar_Full =
    [
        ['Source','NewPage','Preview','-','Templates'],
        //['Source','-','Save','NewPage','Preview','-','Templates'],
        ['Copy','Paste','PasteText','PasteFromWord'],
        //['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['BidiLtr', 'BidiRtl'],'/', ['Link','Unlink'],
        //['Link','Unlink','Anchor'],
        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],
        ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
        '/',
        ['Styles','Format','Font','FontSize'],
        ['TextColor','BGColor'],
        ['Maximize', 'ShowBlocks'],
    ];

    config.toolbar_Description =
    [
        ['Source','-','Preview','-','Templates'],
        ['Paste','PasteText','PasteFromWord'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['Link','Unlink'],['Image','Table','HorizontalRule','Smiley','SpecialChar'],
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
        ['NumberedList','BulletedList'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Font','FontSize'],
        ['TextColor','BGColor'],
    ];

    config.toolbar_Basic =
    [
        ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
    ];
};
